package com.jdz.gxq.info.admin.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.jdz.gxq.info.common.bo.UserInfo;
import com.jdz.gxq.info.common.constant.Constant;

public class LoginAction extends Action {

	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws java.lang.Exception {

		HttpSession session = request.getSession();
		
		UserInfo user = new UserInfo();
		user.setUserId("10001");
		
		session.setAttribute(Constant.SEESION_USER_KEY, user);
		
		return mapping.findForward("hello");
	}

}
